<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>积分中心 - 您的学习成就</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
        }
        
        body {
            background: #f5f7fa;
            color: #333;
            line-height: 1.6;
            min-height: 100vh;
            padding-bottom: 70px;
        }
        
        /* 统一标题栏样式 */
        #header {
            background: linear-gradient(90deg, #2575fc, #6a11cb);
            padding: 12px 16px;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .header_con {
            display: flex;
            align-items: center;
            max-width: 800px;
            margin: 0 auto;
            position: relative;
        }
        
        .back-btn {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: white;
            font-size: 16px;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 8px 12px;
            position: absolute;
            left: 0;
        }
        
        .back-btn:hover {
            transform: translateX(-5px);
        }
        
        .back-btn span {
            display: inline-block;
            margin-right: 6px;
            font-size: 20px;
            transition: all 0.3s ease;
        }
        
        .top_tit {
            flex: 1;
            text-align: center;
            font-size: 18px;
            font-weight: 600;
            color: white;
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }
        
        /* 主内容区域 */
        #content_div {
            max-width: 800px;
            margin: 0 auto;
            padding: 15px;
        }
        
        /* 按钮区域 */
        .top_btn {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            gap: 15px;
        }
        
        .left_btn {
            display: flex;
            gap: 10px;
            flex: 1;
        }
        
        .right_btn {
            flex: 1;
        }
        
        .top_btn button {
            flex: 1;
            padding: 15px 5px;
            border: none;
            border-radius: 12px;
            background: white;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            font-size: 16px;
            font-weight: 600;
            color: #2c3e50;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
        }
        
        .top_btn button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            background: linear-gradient(90deg, #2575fc, #6a11cb);
            color: white;
        }
        
        /* 积分卡片 */
        .zs_cord {
            background: white;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        }
        
        .zs_cord ul {
            display: flex;
            justify-content: space-between;
            list-style: none;
        }
        
        .zs_cord li {
            text-align: center;
            flex: 1;
            padding: 10px;
            position: relative;
        }
        
        .zs_cord li:not(:last-child)::after {
            content: "";
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            height: 50px;
            width: 1px;
            background: #eaeaea;
        }
        
        .zs_cord .title {
            font-size: 14px;
            color: #7f8c8d;
            margin-bottom: 8px;
        }
        
        .zs_cord p:not(.title) {
            font-size: 24px;
            font-weight: 700;
            color: #2575fc;
        }
        
        .zf_span p {
            font-size: 18px;
            line-height: 1.4;
        }
        
        /* 标签区域 */
        .bq_box {
            background: white;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        }
        
        .bq_box > p {
            font-size: 16px;
            color: #7f8c8d;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .bq_blank {
            margin-bottom: 20px;
        }
        
        .bq_blank ul {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            list-style: none;
            justify-content: center;
        }
        
        .bq_blank li {
            background: #e8f4ff;
            border-radius: 30px;
            padding: 8px 15px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }
        
        .bq_blank li:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 10px rgba(37, 117, 252, 0.2);
            background: linear-gradient(90deg, #2575fc, #6a11cb);
            color: white;
        }
        
        .bq_blank li:hover p {
            color: white;
        }
        
        .bq_blank img {
            width: 24px;
            height: 24px;
        }
        
        .bq_blank p {
            font-size: 14px;
            font-weight: 500;
            color: #2575fc;
        }
        
        /* 奖励区域 */
        .bq_blue {
            background: linear-gradient(135deg, #2575fc, #6a11cb);
            border-radius: 16px;
            padding: 20px;
            color: white;
            margin-top: 20px;
        }
        
        .acq_money, .acq_jp {
            margin-bottom: 20px;
        }
        
        .acq_money ul, .acq_jp ul {
            list-style: none;
            display: flex;
            justify-content: space-between;
        }
        
        .acq_money li:first-child, .acq_jp li:first-child {
            font-size: 16px;
            font-weight: 500;
        }
        
        .acq_money li:last-child {
            font-size: 28px;
            font-weight: 700;
        }
        
        .acq_jp li:last-child {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .jp_lan {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 10px;
            padding: 10px 15px;
            font-size: 14px;
            min-width: 120px;
        }
        
        .jp_lan p {
            margin: 5px 0;
        }
        
        /* 底部按钮 */
        .fx_yq_btn {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .fx_yq_btn button {
            flex: 1;
            padding: 16px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        
        #share_btn {
            background: white;
            color: #2575fc;
            border: 2px solid #2575fc;
        }
        
        #yq_btn {
            background: linear-gradient(90deg, #ff7e5f, #feb47b);
            color: white;
        }
        
        .fx_yq_btn button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }
        
        .fx_yq_btn button img {
            width: 24px;
            height: 24px;
            margin-right: 8px;
        }
        
        #yq_btn p:first-child {
            display: flex;
            align-items: center;
        }
        
        #yq_btn p:last-child {
            font-size: 12px;
            margin-top: 4px;
            font-weight: normal;
        }
        
        /* 统一底部导航栏样式 */
        .bottom_box {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            display: flex;
            padding: 10px 0;
            box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
            z-index: 100;
            border-top: 1px solid #eaeaea;
        }
        
        .tab_bar {
            flex: 1;
            text-align: center;
            padding: 8px 0;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .tab_bar:hover {
            transform: translateY(-5px);
        }
        
        .tab_bar i {
            font-size: 22px;
            margin-bottom: 4px;
            display: block;
            margin: 0 auto 5px;
            color: #7f8c8d;
            transition: all 0.3s ease;
        }
        
        .tab_bar p {
            font-size: 12px;
            color: #7f8c8d;
            transition: all 0.3s ease;
        }
        
        .tab_bar.active i {
            color: #2575fc;
        }
        
        .tab_bar.active p {
            color: #2575fc;
            font-weight: 600;
        }
        
        .tab_bar.active::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 3px;
            background: #2575fc;
            border-radius: 2px;
        }
        
        /* 分享弹窗 */
        .bg_black {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            display: none;
        }
        
        .share_box {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-radius: 20px 20px 0 0;
            z-index: 1001;
            padding: 20px;
            display: none;
            animation: slideUp 0.4s ease-out;
        }
        
        @keyframes slideUp {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }
        
        .cut_line {
            width: 50px;
            height: 4px;
            background: #e0e0e0;
            border-radius: 2px;
            margin: 0 auto 20px;
        }
        
        .share_logo {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .share_logo img {
            width: 60px;
            height: 60px;
            border-radius: 12px;
        }
        
        .share_box ul {
            display: flex;
            justify-content: space-around;
            list-style: none;
            margin-bottom: 20px;
        }
        
        .share_box li {
            text-align: center;
            flex: 1;
            padding: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .share_box li:hover {
            transform: translateY(-5px);
        }
        
        .share_box li img {
            width: 50px;
            height: 50px;
            margin-bottom: 8px;
        }
        
        .share_box li p {
            font-size: 12px;
            color: #2c3e50;
        }
        
        #close_share {
            width: 100%;
            padding: 14px;
            background: #f5f5f5;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 500;
            color: #2c3e50;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        #close_share:hover {
            background: #e0e0e0;
        }
        
        /* 邀请好友弹窗 */
        .invite_modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
        }
        
        .invite_content {
            background: white;
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            max-width: 90%;
            width: 350px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
            animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
            transform: scale(0.8);
            opacity: 0;
        }
        
        @keyframes popIn {
            to {
                transform: scale(1);
                opacity: 1;
            }
        }
        
        .invite_icon {
            font-size: 60px;
            margin-bottom: 20px;
            color: #4CAF50;
        }
        
        .invite_title {
            font-size: 24px;
            margin-bottom: 15px;
            color: #2c3e50;
        }
        
        .invite_text {
            font-size: 16px;
            color: #555;
            margin-bottom: 25px;
            line-height: 1.5;
        }
        
        .invite_link {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 12px;
            font-size: 14px;
            margin-bottom: 20px;
            word-break: break-all;
            text-align: left;
            border: 1px dashed #e0e0e0;
        }
        
        .invite_btn {
            padding: 14px 30px;
            background: linear-gradient(90deg, #2575fc, #6a11cb);
            color: white;
            border: none;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px rgba(37, 117, 252, 0.4);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .invite_btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(37, 117, 252, 0.5);
        }
        
        .invite_btn:active {
            transform: translateY(0);
        }
        
        /* 响应式设计 */
        @media (max-width: 480px) {
            .top_btn {
                flex-direction: column;
            }
            
            .bq_blank ul {
                justify-content: flex-start;
            }
            
            .acq_jp li:last-child {
                flex-direction: column;
            }
            
            .fx_yq_btn {
                flex-direction: column;
            }
            
            .invite_content {
                width: 90%;
                padding: 20px 15px;
            }
            
            .invite_title {
                font-size: 20px;
            }
            
            .tab_bar {
                padding: 6px 0;
            }
            
            .tab_bar i {
                font-size: 20px;
                margin-bottom: 3px;
            }
        }
    </style>
</head>
<body>
    <!-- 标题栏 -->
    <header id="header">
        <div class="header_con">
            <a href="javascript:history.back()" class="back-btn">
                <span>←</span>
            </a> 
            <div class="top_tit">积分中心</div>
        </div>
    </header>

    <!-- 主内容区 -->
    <div id="content_div" class="">
        <div class="top_btn">
            <div class="left_btn">
                <button type="button" onclick="document.location.href='obtain-title1.html';">
                    <i class="fas fa-coins"></i>
                    积分获得
                </button>
                <button type="button" onclick="document.location.href='obtain-title.html';">
                    <i class="fas fa-trophy"></i>
                    称号获得
                </button>
            </div>
            <div class="right_btn" onclick="document.location.href='mouthly.html';">
                <button type="button">
                    <i class="fas fa-file-alt"></i>
                    每月明细
                </button>
            </div>
        </div>
        
        <div class="zs_cord">
            <ul>
                <li>
                    <div class="pm_span">
                        <p class="title">排名</p>
                        <p>300</p>
                    </div>
                </li>
                <li>
                    <div class="zf_span">
                        <p>总分<br />300</p>
                    </div>
                </li>
                <li>
                    <div class="yq_span">
                        <p class="title">邀请人数</p>
                        <p>30</p>
                    </div>
                </li>
            </ul>
        </div>
        
        <div class="bq_box">
            <p>根据综合评分，小主拥有以下称呼：</p>
            <div class="bq_blank">
                <ul>
                    <li>
                        <img src="img/fx_icon.png" alt="分享" />
                        <p>分享达人</p>
                    </li>
                    <li>
                        <img src="img/wj_icon.png" alt="问卷" />
                        <p>问卷专家</p>
                    </li>
                    <li>
                        <img src="img/qd_icon.png" alt="签到" />
                        <p>签到王者</p>
                    </li>
                    <li>
                        <img src="img/qd_icon.png" alt="活跃" />
                        <p>活跃之星</p>
                    </li>
                    <li>
                        <img src="img/qd_icon.png" alt="学习" />
                        <p>学习先锋</p>
                    </li>
                    <li>
                        <img src="img/qd_icon.png" alt="贡献" />
                        <p>社区贡献者</p>
                    </li>
                </ul>
            </div>
            
            <div class="bq_blue">
                <div class="acq_money">
                    <ul>
                        <li>获得现金总额</li>
                        <li><em>￥30</em></li>
                    </ul>
                </div>
                <div class="acq_jp">
                    <ul>
                        <li>获得月奖品</li>
                        <li>
                            <div class="jp_lan">
                                <p>非遗手作体验券</p>
                                <p>2025年1月月度奖品</p>
                            </div>
                            <div class="jp_lan">
                                <p>智能健康手表</p>
                                <p>2025年2月月度奖品</p>
                            </div>
                            <div class="jp_lan">
                                <p>VR健身镜月卡</p>
                                <p>2025年3月月度奖品</p>
                            </div>
                        </li>
                    </ul>    
                </div>
            </div>
        </div>
        
        <div class="fx_yq_btn">
            <button type="button" id="share_btn">
                <img src="img/share_btn.png" alt="分享"/>
                分享好友
            </button>
            <button type="button" id="yq_btn">
                <p>
                    <img src="img/yaoqing.png" alt="邀请"/>
                    邀请好友
                </p>
                <p>（邀请一人，增加3分）</p>
            </button>
        </div>
    </div>
    
    <!-- 统一底部导航 -->
    <div class="bottom_box">
        <div class="tab_bar" id="index" onclick="document.location.href='index.html';">
            <i class="fas fa-home"></i>
            <p>首页</p>
        </div>
        <div class="tab_bar active" id="jf" onclick="document.location.href='integral.html';">
            <i class="fas fa-coins"></i>
            <p>积分</p>
        </div>
        <div class="tab_bar" id="call" onclick="document.location.href='personal-callme.html';">
            <i class="fas fa-headset"></i>
            <p>联系我们</p>
        </div>
        <div class="tab_bar" id="my" onclick="document.location.href='personal-center.html';">
            <i class="fas fa-user"></i>
            <p>我的</p>
        </div>
    </div>
    
       <!-- 分享弹窗 -->
       <div class="bg_black" hidden="hidden"></div>
       <div class="share_box" hidden="hidden">
           <div class="cut_line"></div>
           <div class="share_logo">
               <i class="fas fa-share-alt" style="font-size: 48px; color: #2575fc;"></i>
               <h3 style="margin-top: 10px; color: #333;">分享学习成就</h3>
           </div>
           <ul>
               <li>
                   <div class="icon wechat">
                       <i class="fab fa-weixin"></i>
                   </div>
                   <p>微信好友</p>
               </li>
               <li>
                   <div class="icon moments">
                       <i class="fas fa-comment-dots"></i>
                   </div>
                   <p>朋友圈</p>
               </li>
               <li>
                   <div class="icon qq">
                       <i class="fab fa-qq"></i>
                   </div>
                   <p>QQ好友</p>
               </li>
               <li>
                   <div class="icon qzone">
                       <i class="fas fa-share-alt"></i>
                   </div>
                   <p>QQ空间</p>
               </li>
               <li>
                   <div class="icon weibo">
                       <i class="fab fa-weibo"></i>
                   </div>
                   <p>新浪微博</p>
               </li>
               <li>
                   <div class="icon link">
                       <i class="fas fa-link"></i>
                   </div>
                   <p>复制链接</p>
               </li>
           </ul>
           <button type="button" id="close_share">取消</button>
       </div>
    
    <!-- 邀请好友弹窗 -->
    <div class="invite_modal" id="inviteModal">
        <div class="invite_content">
            <div class="invite_icon">
                <i class="fas fa-link"></i>
            </div>
            <h2 class="invite_title">链接已复制</h2>
            <p class="invite_text">邀请链接已复制到剪贴板，快去分享给好友吧！</p>
            
            <div class="invite_link" id="inviteLink">
                https://example.com/invite?ref=USER12345
            </div>
            
            <button class="invite_btn" id="closeInviteBtn">
                <i class="fas fa-check"></i> 确定
            </button>
        </div>
    </div>

    <script>
        // 分享按钮功能
        document.getElementById('share_btn').addEventListener('click', function() {
            document.querySelector('.bg_black').style.display = 'block';
            document.querySelector('.share_box').style.display = 'block';
        });
        
        // 关闭分享弹窗
        document.querySelector('.bg_black').addEventListener('click', function() {
            this.style.display = 'none';
            document.querySelector('.share_box').style.display = 'none';
        });
        
        document.getElementById('close_share').addEventListener('click', function() {
            document.querySelector('.bg_black').style.display = 'none';
            document.querySelector('.share_box').style.display = 'none';
        });
        
        // 邀请好友按钮功能
        document.getElementById('yq_btn').addEventListener('click', function() {
            // 复制链接到剪贴板
            const link = "https://example.com/invite?ref=USER12345";
            navigator.clipboard.writeText(link)
                .then(() => {
                    // 显示邀请成功弹窗
                    document.getElementById('inviteModal').style.display = 'flex';
                })
                .catch(err => {
                    console.error('复制失败:', err);
                    // 即使复制失败也显示弹窗
                    document.getElementById('inviteModal').style.display = 'flex';
                });
        });
        
        // 关闭邀请弹窗
        document.getElementById('closeInviteBtn').addEventListener('click', function() {
            document.getElementById('inviteModal').style.display = 'none';
        });
        
        // 点击弹窗背景关闭
        document.getElementById('inviteModal').addEventListener('click', function(e) {
            if (e.target === this) {
                this.style.display = 'none';
            }
        });
        
        // 动态设置当前激活的导航项
        document.addEventListener('DOMContentLoaded', function() {
            // 设置积分页为激活状态
            document.getElementById('jf').classList.add('active');
            
            // 为称号标签添加悬停效果
            const titleTags = document.querySelectorAll('.bq_blank li');
            titleTags.forEach(tag => {
                tag.addEventListener('mouseenter', function() {
                    this.style.transform = 'scale(1.05)';
                });
                
                tag.addEventListener('mouseleave', function() {
                    this.style.transform = 'scale(1)';
                });
            });
            
            // 为底部导航添加点击效果
            const tabBars = document.querySelectorAll('.tab_bar');
            tabBars.forEach(tab => {
                tab.addEventListener('click', function() {
                    tabBars.forEach(t => t.classList.remove('active'));
                    this.classList.add('active');
                });
            });
        });
    </script>
</body>
</html>